package com.mornd.gulimall.apis.search.to;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/8/9 - 14:18
 */

@Getter
@Setter
public class SkuEsModel {
    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private String skuTitleText;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;

    /**
     * 是否还有库存
     */
    private Boolean hasStock;

    /**
     * 热度得分
     */
    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;

    @Getter
    @Setter
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
